//
//  Screen.swift
//  CosClub
//
//  Created by 沙睿 on 2020/2/6.
//  Copyright © 2020 ios. All rights reserved.
//

import UIKit

public let kScreenWidth = UIScreen.main.bounds.size.width
public let kScreenHeight = UIScreen.main.bounds.size.height

public let kScaleW = kScreenWidth / 375
public let kScaleH = kScreenHeight / 667

public let margin = UISpecification.marginHor.rawValue

public var statusBarHeight :CGFloat {
    if #available(iOS 13.0, *) {
       return UIApplication.shared.windows.last?.windowScene?.statusBarManager?.statusBarFrame.size.height ?? 0
    }else {
        return UIApplication.shared.statusBarFrame.size.height;
    }
    
}

public var safeBottomHeight :CGFloat {
    if  statusBarHeight == 44 {
        return 34
    }else {
        return 0
    }
}

